<?php
class Home_BlockController extends Clu_Controller_Action_Mini
{
	
	public function init()
	{
		//require_once (APP_PATH.'/modules/place/Model/Place.php');
		//require_once (APP_PATH.'/modules/place/Form/PlaceSearch.php');
		//require_once (APP_PATH.'/modules/article/Model/Article.php');
		//require_once (APP_PATH.'/modules/event/Model/Event.php');
		$this->mPlace = new place_Model_Place();
		$this->mArticle = new article_Model_Service();
		parent::init();
	}
	
	public function simpleSearchAction()
    {
    	$regionId = $this->miniRequest['regionId'];
		$boxWeight = $this->miniRequest['boxWeight'];
    	
		//todo: just sample to test layout. to be removed
		$placeSimpleSearchRequest = array(
				'module' => 'place',
				'controller' => 'block',
				'action' => 'simpleSearch',
				'regionId' => 8,
				'boxWeight' => 1,
		);
		$this->addMiniAction($placeSimpleSearchRequest);
	
		$eventSimpleSearchRequest = array(
				'module' => 'event',
				'controller' => 'block',
				'action' => 'simpleSearch',
				'regionId' => 8,
				'boxWeight' => 2,
		);
		$this->addMiniAction($eventSimpleSearchRequest);
		
		$tourSimpleSearchRequest = array(
				'module' => 'tour',
				'controller' => 'block',
				'action' => 'simpleSearch',
				'regionId' => 8,
				'boxWeight' => 3,
		);
		$this->addMiniAction($tourSimpleSearchRequest);
		
		$this->renderToHolder('index/mini_search.phtml', false, null, $regionId, $boxWeight);
    }
}
?>